package Day015_File类_递归_IO流.ZuoYe;

import java.io.FileInputStream;

/**
 * @author zhangyan
 * @date 2020/5/6 18:18
 */
public class Test7 {
    public static void main(String[] args) throws Exception{

        //创建字节输入流对象
        FileInputStream fis = new FileInputStream("Demo02\\aaa\\c.txt");

        //按字节循环读取
        //定义变量 存储读取的数据
        int a;
        while ((a = fis.read()) != -1){

            System.out.print((char)a + " ");
        }

    }
}
